package com.rexense.beacon.alg;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class BleBase {

    private double rssi;

    private String beaconId;

    private double x;

    private double y;

    private double n;

    private double h;

    private double p0;

    private double distinct;

    public BleBase distinct() {
        this.distinct = Math.pow(10, Math.abs(rssi) - Math.abs(p0)) / (10 * n);
        return this;
    }

}
